<style tyle="text/css">
    .modal-lg {
        width: 80%;
    }

    .panel {
        margin-bottom: 0px;
    }
</style>
<div class="panel panel-default">
    <div class="modal-header">
        <h4 class="modal-title">活动列表</h4>
    </div>
    <div class="modal-body panel-body">
        <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
            <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
                <thead>
                    <tr>
                        <th class="col-md-1 text-center">补贴活动标识</th>
                        <th class="col-md-1 text-center">不允许补贴活动标识</th>
                        <th class="col-md-1 text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="obj in list">
                        <td class="text-center">{{obj.subsidy_name}}</td>
                        <td class="text-center" ng-dblclick="edit($index)">
                            <span ng-show="!obj.is_new">{{obj.subsidy_id_no}}</span>
                            <ui-select ng-model="activity.data" theme="bootstrap" ng-show="obj.is_new">
                                <ui-select-match placeholder="选择附属产品...">{{$select.selected.subsidy_name}}【{{$select.selected.subsidy_id}}】</ui-select-match>
                                <ui-select-choices repeat="item in activity_list">
                                    <span ng-bind-html="item.subsidy_name | highlight: $select.search"></span>
                                    【<span ng-bind-html="item.subsidy_id | highlight: $select.search"></span>】
                                </ui-select-choices>
                            </ui-select>
                        </td>
                        <td class="text-center">
                            <button type="button" class="btn btn-info btn-xs" ng-if="!obj.is_new" ng-click="del(obj)">删除</button>
                            <button type="button" class="btn btn-info btn-xs" ng-if="obj.is_new" ng-click="create(obj)">保存</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>
    <div class="modal-footer">
        <a class="btn btn-md btn-success" ng-click="add()">添加活动</a>
    </div>

</div>